package fly.util;

import fly.help.ArraySupport;
import fly.help.PrintSupport;

import java.util.Calendar;

public class CalendarAbsDemo {

    static void staticDemo1(){
        PrintSupport.sout(1);

        System.out.println(
                Calendar.getAvailableCalendarTypes().toString()
        );

        PrintSupport.sout(2);

        System.out.println(
                ArraySupport.toString(
                        Calendar.getAvailableLocales()
                )
        );

    }

    static void objDemo1(){
        Calendar cl = Calendar.getInstance();

        int field = 2;
        Integer[] intArr ={
                cl.get(field),
                cl.getActualMaximum(field),
                cl.getActualMinimum(field),
                cl.getFirstDayOfWeek(),
                cl.getGreatestMinimum(field),
                cl.getLeastMaximum(field),
                cl.getMaximum(field),
                cl.getMinimum(field),
                cl.getWeeksInWeekYear(),
                cl.getWeekYear()
        };
        PrintSupport.sout(1);

        System.out.println(
                ArraySupport.toString(intArr)
        );

        String[] strArr ={
                  
        };
        System.out.println( cl.toString());

        PrintSupport.sout(2);
        System.out.println( cl.get(2));

        PrintSupport.sout(3);
        System.out.println( cl.getActualMaximum(2) );

        PrintSupport.sout(4);
        System.out.println( cl.getActualMinimum(2));

        PrintSupport.sout(5);
        System.out.println( cl.getCalendarType());

        PrintSupport.sout(6);
        System.out.println( cl.toString());

        PrintSupport.sout(7);
        System.out.println( cl.getFirstDayOfWeek());

        PrintSupport.sout(8);
        System.out.println( );


        PrintSupport.sout(8);
        PrintSupport.sout(8);

    }
    public static void main(String[] args) {
        staticDemo1();

        PrintSupport.sout("2");

        objDemo1();

    }
}
